<?php $errors = pc_variable("errors"); 
if($errors !== null && !$errors->isEmpty()) { ?> 
<h2><?php pc_echo(pc_message("error.server.title")); ?></h2>
<?php pc_pagelet("common/errors");
} else { ?>
<h2><?php pc_echo(pc_message("error.server.unknown.title")); ?></h2>
<p><?php pc_echo(pc_message("error.server.description")); ?></p>
<p><?php pc_echo(pc_message("error.server.suggestions")); ?></p>
<ul>
    <li>
        <?php pc_echo(pc_message("error.server.suggestions.tryAgain1")); ?>
        <a href="javascript:history.go(-1)"><?php pc_echo(pc_message("error.server.suggestions.tryAgain2")); ?></a><?php pc_echo(pc_message("error.server.suggestions.tryAgain3")); ?>
    </li>
    <li><?php pc_echo(pc_message("error.server.suggestions.tryLater")); ?></li>
    <li>
        <?php pc_echo(pc_message("error.server.suggestions.contact1")); ?>
        <a href="/dispatcher.php?controller=Contact"><?php pc_echo(pc_message("error.server.suggestions.contact2")); ?></a><?php pc_echo(pc_message("error.server.suggestions.contact3")); ?>
    </li>
</ul>
<?php $application = pc_variable("pageley.application");
if($application->getEnvironment() == "development") { ?>
<p>
    <strong><?php pc_echo(pc_message("error.server.applicationName")); ?>:</strong> <?php pc_echo($application->getName()); ?><br/>
    <strong><?php pc_echo(pc_message("error.server.version")); ?>:</strong> <?php pc_echo($application->getVersion()); ?><br/>
    <strong><?php pc_echo(pc_message("error.server.environment")); ?>:</strong> <?php pc_echo($application->getEnvironment()); ?><br/>
    <strong><?php pc_echo(pc_message("error.server.additionalInformation")); ?>:</strong>
</p>
<pre><?php pc_echo(pc_variable("pageley.exception"), 70); ?></pre>
<?php } } ?>